import { createHashRouter } from 'react-router'
import DefaultLayout from '@/layouts/default'
import Index from '@/views/index'
import UnixTime from '@/views/unixTime'
import Hex from '@/views/hex'
import Bangumi2json from '@/views/bangumi2json'
import Img2base64 from '@/views/img2base64'
import Ua from '@/views/ua'

export default createHashRouter(
  [
    {
      path: '/',
      element: <DefaultLayout />,
      children: [
        { path: '/', element: <Index /> },
        { path: '/unixTime', element: <UnixTime /> },
        { path: '/hex', element: <Hex /> },
        { path: '/bangumi2json', element: <Bangumi2json /> },
        { path: '/img2base64', element: <Img2base64 /> },
        { path: '/ua', element: <Ua /> }
      ]
    }
  ]
)
